package com.aix.demo.activity;

import android.os.Bundle;
import android.util.Log;

import com.aix.android.framework.activity.BaseActivity;
import com.aix.demo.R;
import com.aix.demo.db.PersonDao;
import com.aix.demo.entity.Person;

public class SQLiteActivity extends BaseActivity {
	
	private static final String TAG = "SQLiteActivity";
	
	private PersonDao personDao;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_sqlite);
		
		personDao = new PersonDao(this);
		
		Log.e(TAG, "PersonDao created");
		
		Person person = new Person();
		person.setName("xmx");
		personDao.add(person);
	}
}
